/**
 * Clase Etudiant
 */

package perso;

public class Etudiant extends Personne {

	private float note;

	/**
	* Constructor
	* @param	nom		name of the Etudiant to be created
	* @param	int		age of the Etudiant to be created
	* @param	float	note of the Etudiant to be created
	*/
	public Etudiant(String nom, int age, float note) {
		super(nom,age);
		this.note = note;
	}

	/**
	* Getter of the note of the current Etudiant object
	* @return	note	note of the etudiant
	*/
	public float getNote() {
		return this.note;
	}

	/**
	* Setter of the note of the current Etudiant object
	* @param	note	note of the etudiant
	*/
	public void setNote(float val) {
		this.note = val;
	}

	/**
	* Redifinition of the toString class
	* @return 			the String representing the Object
	*/
	public String toString() {
		return super.toString() + " Tiene la nota Siguiente : " + this.note + ".";
	}
}